#include <stdio.h>
#include "../../src/gtthread.h"

char g_str[] = "hello world\n";

void* worker(void* arg)
{
	volatile int i=0;

	for(i=0;i<1000000000;i++);
	printf("thread work\n");
}

int main()
{
	gtthread_t th1;
	void* ret;
	volatile int i=0;

	gtthread_init(1000);

	gtthread_create(&th1, worker, NULL);

	for(i=0;i<10000000;i++);
	printf("main work\n");

	gtthread_exit(NULL);
}
